import { ColumnProps } from "/@/components/ProTable/interface";
import { online } from "/@/utils/serviceDict";

// 配置项
const columns = (selectable: Function): Partial<ColumnProps>[] => {
    return [{
            type: "selection",
            width: 60,
            selectable: selectable,
            fixed: "left"
        },
        {
            type: "index",
            label: "#",
            width: 60
        },
        {
            prop: "online",
            label: "状态",
            width: 140,
            searchType: "select"
        },
        {
            prop: "account",
            label: "用户",
            width: 280,
            search: true,
        },
        {
            prop: "ip",
            label: "IP",
            width: 280,
            search: true,
        },
        {
            prop: "startTime",
            label: "登录时间",
        },
        {
            prop: "operation",
            label: "操作",
            width: 100,
            fixed: "right"
        }
    ]
}

export default columns;